package com.fosdata.dpm.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;
import java.io.Serializable;


/**
 * <p>
 * 线路表
 * </p>
 *
 * @author gyk
 * @since 2025-10-22
 */

@TableName("sys_line")
public class SysLine extends Model<SysLine> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "line_id", type = IdType.AUTO)
    private Integer lineId;

    /**
     * 线路编号
     */
    private String lineCode;

    /**
     * 线路名称
     */
    private String lineName;

    /**
     * 状态;删除1，正常0
     */
    private Integer lineDelFlag;

    /**
     * 线路开始坐标
     */
    private String lineStart;

    /**
     * 线路结束坐标
     */
    private String lineEnd;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.lineId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getLineId() {
        return lineId;
    }

    public void setLineId(Integer lineId) {
        this.lineId = lineId;
    }

    public String getLineCode() {
        return lineCode;
    }

    public void setLineCode(String lineCode) {
        this.lineCode = lineCode;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public Integer getLineDelFlag() {
        return lineDelFlag;
    }

    public void setLineDelFlag(Integer lineDelFlag) {
        this.lineDelFlag = lineDelFlag;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getLineStart() {
        return lineStart;
    }

    public void setLineStart(String lineStart) {
        this.lineStart = lineStart;
    }

    public String getLineEnd() {
        return lineEnd;
    }

    public void setLineEnd(String lineEnd) {
        this.lineEnd = lineEnd;
    }

    @Override
    public String toString() {
        return "SysLine{" +
                "lineId=" + lineId +
                ", lineCode='" + lineCode + '\'' +
                ", lineName='" + lineName + '\'' +
                ", lineDelFlag=" + lineDelFlag +
                ", createTime=" + createTime +
                '}';
    }
}
